package com.corpcredit.model;

// Generated Jul 22, 2008 11:56:54 PM by Hibernate Tools 3.2.0.CR1

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * Gds generated by hbm2java
 */
@Entity
@Table(name = "gds")
public class Gds implements java.io.Serializable
{

    private Long id;
    private int version;
    private Jbqk jbqk;
    private String username;
    private String operation;
    private Date optdate;
    private long ny;
    private BigDecimal jngsse;
    private BigDecimal gsznj;
    private BigDecimal gsfkse;
    private BigDecimal jndsse;
    private BigDecimal dsznj;
    private BigDecimal dsfkse;

    public Gds()
    {
    }

    public Gds( Long id, long ny )
    {
        this.id = id;
        this.ny = ny;
    }

    public Gds( Long id,
                Jbqk jbqk,
                String username,
                String operation,
                Date optdate,
                long ny,
                BigDecimal jngsse,
                BigDecimal gsznj,
                BigDecimal gsfkse,
                BigDecimal jndsse,
                BigDecimal dsznj,
                BigDecimal dsfkse )
    {
        this.id = id;
        this.jbqk = jbqk;
        this.username = username;
        this.operation = operation;
        this.optdate = optdate;
        this.ny = ny;
        this.jngsse = jngsse;
        this.gsznj = gsznj;
        this.gsfkse = gsfkse;
        this.jndsse = jndsse;
        this.dsznj = dsznj;
        this.dsfkse = dsfkse;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId()
    {
        return this.id;
    }

    public void setId( Long id )
    {
        this.id = id;
    }

    @Version
    @Column(name = "version", nullable = false)
    public int getVersion()
    {
        return this.version;
    }

    public void setVersion( int version )
    {
        this.version = version;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "jbq_ID")
    public Jbqk getJbqk()
    {
        return this.jbqk;
    }

    public void setJbqk( Jbqk jbqk )
    {
        this.jbqk = jbqk;
    }

    @Column(name = "username", length = 50)
    public String getUsername()
    {
        return this.username;
    }

    public void setUsername( String username )
    {
        this.username = username;
    }

    @Column(name = "operation", length = 20)
    public String getOperation()
    {
        return this.operation;
    }

    public void setOperation( String operation )
    {
        this.operation = operation;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "optdate", length = 23)
    public Date getOptdate()
    {
        return this.optdate;
    }

    public void setOptdate( Date optdate )
    {
        this.optdate = optdate;
    }

    @Column(name = "ny", nullable = false)
    public long getNy()
    {
        return this.ny;
    }

    public void setNy( long ny )
    {
        this.ny = ny;
    }

    @Column(name = "jngsse", precision = 18)
    public BigDecimal getJngsse()
    {
        return this.jngsse;
    }

    public void setJngsse( BigDecimal jngsse )
    {
        this.jngsse = jngsse;
    }

    @Column(name = "gsznj", precision = 18)
    public BigDecimal getGsznj()
    {
        return this.gsznj;
    }

    public void setGsznj( BigDecimal gsznj )
    {
        this.gsznj = gsznj;
    }

    @Column(name = "gsfkse", precision = 18)
    public BigDecimal getGsfkse()
    {
        return this.gsfkse;
    }

    public void setGsfkse( BigDecimal gsfkse )
    {
        this.gsfkse = gsfkse;
    }

    @Column(name = "jndsse", precision = 18)
    public BigDecimal getJndsse()
    {
        return this.jndsse;
    }

    public void setJndsse( BigDecimal jndsse )
    {
        this.jndsse = jndsse;
    }

    @Column(name = "dsznj", precision = 18)
    public BigDecimal getDsznj()
    {
        return this.dsznj;
    }

    public void setDsznj( BigDecimal dsznj )
    {
        this.dsznj = dsznj;
    }

    @Column(name = "dsfkse", precision = 18, scale = 9)
    public BigDecimal getDsfkse()
    {
        return this.dsfkse;
    }

    public void setDsfkse( BigDecimal dsfkse )
    {
        this.dsfkse = dsfkse;
    }

}
